package response

import (
	"server/src/model"
	"server/src/model/common"
)

type BgGuessNum struct {
	GuessId       int     `json:"guess_id" form:"guess_id"`
	PlayingMethod int     `json:"playing_method"`
	Num           []int   `json:"num" form:"num"`
	Integral      float64 `json:"integral" form:"integral"`
}

type OurBgCurrentBetting struct {
	Id          int `json:"id" form:"id"`
	UserId      int `json:"user_id" form:"user_id"`
	AnswerId    int `json:"answer_id" form:"answer_id"`
	BgGuessNums []*BgGuessNum
}

// 本期所有竞猜信息
type BgCurrentAllBetting struct {
	BgCurrentBettrings []*OurBgCurrentBetting `json:"bg_current_bettrings"`
}

// 获取每个群中用户下注的信息
type GetOneGroupBgCurrentBetting struct {
	*model.WeChatGroupUser
	*model.BgGuess
}

// 分页获取期数数据
type QueryBgAnswersPages struct {
	Page common.PageResInfo    `json:"page" from:"page"`
	Qbap []*QueryBgAnswersPage `json:"qbap" from:"qbap"`
}
type QueryBgAnswersPage struct {
	AnswerId    int    `json:"answer_id" from:"answer_id"`
	SuperNumber int    `json:"super_number" from:"super_number"`
	AnswerNum   int    `json:"answer_num" from:"answer_num"`
	AnswerSize  string `json:"answer_size" from:"answer_size"`
	AnswerDos   string `json:"answer_dos" from:"answer_dos"`
}

// 查询番薯
type GetBgFanShuInfo struct {
	StartAnswerId int   `json:"start_answer_id" from:"start_answer_id"`
	EndAnswerId   int   `json:"end_answer_id" from:"end_answer_id"`
	AnswerNums    []int `json:"answer_nums" from:"answer_nums"`
}

// 返回长龙
type GetChangLong struct {
	Time int `json:"time"`
	L2   int `json:"l2"`
	L3   int `json:"l3"`
	L4   int `json:"l4"`
	L5   int `json:"l5"`
	L6   int `json:"l6"`
	L7   int `json:"l7"`
	L8   int `json:"l8"`
}

// 返回宾果游戏信息
type BgGameInfo struct {
	WaitTime        int `json:"wait_time" from:"wait_time"`
	OpenTime        int `json:"open_time" from:"open_time"`
	CurrentAnswerId int `json:"current_answer_id" from:"current_answer_id"`
	NextAnswerId    int `json:"next_answer_id" from:"next_answer_id"`
}
